from superdice.libs.diceConfigs import configFile
from superdice.superdice import registerRoll, unregisterRoll

def es_map_start(ev):
    cfgData.execute()

def unload():
    unregisterRoll(diceRoll)

def diceRoll(userid, player, eplayer):
    player.setColor(255, 255, 255, int(invis))

cfgData = configFile('dice_invis')
invis = cfgData.cvar('superdice_cfg_invis_invis', 70, 'What does the player\'s invis become?')
cfgData.write()
cfgData.execute()

registerRoll(diceRoll, 'invis')
